package oojo.data.spec;

import oojo.data.Query;

/**
 * Update an entity.
 */
public class Update<E> implements Query<E, E> {

    private E entity;
    
    public Update() {}
    
    public Update(E entity) {
        setEntity(entity);
    }
    
    /**
     * The entity to update.
     */
    public E getEntity() {
        return entity;
    }
    
    public void setEntity(E entity) {
        this.entity = entity;
    }
}
